propertyNames

abstract fun propertyNames(): List<String>

Returns an immutable list of the names of the enumerable properties of this JavaScript object, including the properties from the prototype objects.

The list returned by this method contains the same values as would be enumerated by a for-in statement over this object in JavaScript.

Return

a list of the names of the properties of this JavaScript object or an empty list if the object does not have any properties

Throws

when the JavaScript object is already disposed or invalid